package com.znyj.cloud.device.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by gaoliwei02 on 17/8/9.
 */
public class ServerEnvUtil {
        private static String serverEnv = "";

        public static String getServerEnv() {
            return serverEnv;
        }

        static {
            InputStream inputStream = ServerEnvUtil.class.getClassLoader().getResourceAsStream("base.properties");
            Properties properties = new Properties();
            try {
                properties.load(inputStream);
                serverEnv = properties.getProperty("system.env");
                inputStream.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
}
